package com.hotline.communication.enums;

import lombok.Getter;


public enum AIStatusEnum {

    CLOSE("0","启用"),

    OPEN("1","全天启用"),

    WORK_TIME_OPEN("2","工作时间启用"),

    NON_WORK_TIME_OPEN("3","非工作时间启用");
    /**
     * 编码
     */
    @Getter
    private String code;

    /**
     * 名称
     */
    @Getter
    private String name;



    AIStatusEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }


    public static AIStatusEnum getAIStatusEnum(String code){
        for (AIStatusEnum aiStatusEnum : AIStatusEnum.values()){
            if(aiStatusEnum.getCode().equals(code)){
                return aiStatusEnum;
            }
        }
        return null;
    }
}
